import request from '@/utils/request';

const PRE_URL = '/market/night';

/**
 * 根据条件查询信息
 * @param {*} params
 */
export async function query(params) {
  return request(`${PRE_URL}/getByPage`, {
    method: 'POST',
    data: {
      ...params,
    },
  });
}

/**
 * 动态调整折扣
 */
export async function dynamicAdjust(params) {
  return request(`${PRE_URL}/dynamicAdjust`, {
    method: 'POST',
    data: {
      ...params,
    },
  });
}
